package Bussiness;

import Controller.Delete;

/**
 * 
 * @author Nhóm java lớp PNV2T - Nguyễn Thị Lệ Đài - Nguyễn Chí Hướng
 */
public class Delete_Action {
	Delete de = null;

	/** Creates a new instance of Delete_Action */
	public Delete_Action() {
		de = new Delete();
	}

	public boolean XoaBangDiem(int MaSV, int MaMon) {
		if (de.XoaBangDiem(MaSV, MaMon) > 0)
			return true;
		return false;
	}

	public boolean XoaBangDiemMonHoc(int MaMon) {
		if (de.XoaBangDiemMonHoc(MaMon) > 0)
			return true;
		return false;
	}

	public boolean XoaBangDiemSinhVien(int MaSV) {
		if (de.XoaBangDiemSinhVien(MaSV) > 0)
			return true;
		return false;
	}

	public boolean XoaMonHoc(int ID) {
		if (de.XoaMonHoc(ID) > 0)
			return true;
		return false;
	}

	public boolean XoaSinhVien(int ID) {
		if (de.XoaSinhVien(ID) > 0)
			return true;
		return false;
	}

	public boolean XoaLopHoc(int ID) {
		if (de.XoaLopHoc(ID) > 0)
			return true;
		return false;
	}

	public boolean XoaKhoaHoc(int ID) {
		if (de.XoaKhoaHoc(ID) > 0)
			return true;
		return false;
	}

	public void Close() {
		de.CloseData();
	}

	public boolean XoaTaiKhoan(int id) {
		if (de.XoaTaiKhoan(id) > 0)
			return true;
		return false;
	}
}
